package org.geeks.gsspringsecurity.repository;

import org.geeks.gsspringsecurity.GsSpringSecurityApplicationTests;
import org.geeks.gsspringsecurity.biz.domain.Role;
import org.geeks.gsspringsecurity.biz.repository.RoleRepository;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 角色测试
 * 
 * @author Geek-S
 *
 */
public class RoleRepositoryT extends GsSpringSecurityApplicationTests {

	@Autowired
	private RoleRepository roleRepository;

	/**
	 * 添加测试角色
	 */
	@Test
	public void save() {
		Role role = new Role();
		role.setName("admin");
		role.setMemo("超级管理员");

		roleRepository.save(role);
	}

}
